﻿@model IEnumerable<TuanAnhPersonalWeb.Models.TUANANH__ALBUM>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            ALBUM_THUMB
        </th>
        <th>
            ALBUM_TITLE
        </th>
     
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
             <img src=@item.ALBUM_THUMB width="100px" height="100px"/>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ALBUM_TITLE)
        </td>
     
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ALBUM_ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ALBUM_ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ALBUM_ID })
        </td>
    </tr>
}

</table>
